#ifndef CommonDefine_h__
#define CommonDefine_h__

#include <assert.h>
#include <vector>
#include <map>
#include <string>

#define BUFFER_LEN 2048

//-------------------------------------
enum UnitType
{
	TYPE_NONE,
	TYPE_UNIT,
	TYPE_LINK,
	TYPE_TEXT,
	//TYPE_BEHAVIOR,
};

class BaseUnit;
class Unit;
class Link;
class Text;

//-------------------------------------
#define TRUCT_ZERO   0
#define TRUCT_HALF   5000
#define TRUCT_NORMAL 9000
#define TRUCT_FULL  10000
#define TRUCT_OVER  20000

//-------------------------------------
#define WEIGHT_NORMAL 10000

//-------------------------------------
typedef std::string String;
typedef std::vector<int> IntArray;

#define UID_DESCRIPTION 100000002
#define UID_MEANING 100000003
#define UID_ANSWER 100000004
#define UID_SEARCH_AREA 100000005
#define UID_SEARCH_BASIC 100000006
#define UID_A_BELONG_B_CLASS 100000008
#define UID_A_INCLUDE_B_CLASS 100000012
#define UID_UNKNOWN_SET 100000014

#endif // CommonDefine_h__
